package com.example.yqand4v1_1.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsCollectMapper {

    List<Integer> getVolunteerCollection(@Param("volunteerId") int volunteerId);

    void addVolunteerCollect(@Param("volunteerId") int volunteerId, @Param("newsId") int newsId);

    int countVolunteerCollect(@Param("volunteerId") int volunteerId, @Param("newsId") int newsId);

    void removeNewsCollect(@Param("volunteerId") int volunteerId, @Param("newsId") int newsId);
}
